

function [SL1,SR1]=Normalize(SL,SR)

 phaseL(:,:)=atan2(imag(SL(:,:)),real(SL(:,:)));

% %normalization
 a=sqrt(abs(SR(:,:)).^2 + abs(SL(:,:)).^2);

SL1(:,:)=SL(:,:).*exp(-1i*phaseL(:,:))./a;
SR1(:,:)=SR(:,:).*exp(-1i*phaseL(:,:))./a;



end